/**
 * @description: 总路由 - 其他页面的路由汇聚到这里
 * @author: xiaoxujs
 */
import { ItemType } from 'antd/es/menu/interface';

// 计划管理
import {
    enumPlanManagement,
    routerPlanManagement,
} from '../pages/PlanManagement/router';
// 货品维护
import {
    enumProductMaintenance,
    routerProductMaintenance,
} from '../pages/ProductMaintenance/router';

//菜单
let enumData: ItemType[] = [
    ...enumPlanManagement,
    ...enumProductMaintenance,
];

//路由
let routerData: {
    path: string;
    title: string;
    component: JSX.Element;
}[] = [
    ...routerPlanManagement,
    ...routerProductMaintenance,
];

export { routerData, enumData };
